<?xml version="1.0"?>
<jsp:root 	xmlns:jsp="http://java.sun.com/JSP/Page"
 			xmlns:c="http://java.sun.com/jsp/jstl/core"
 			xmlns="http://www.w3.org/1999/xhtml"
 			version="2.1">
 
 <jsp:directive.page contentType="text/html" pageEncoding="UTF-8" />
 <jsp:directive.page isELIgnored="false" />
 <jsp:output 	omit-xml-declaration="false" 
 			 	doctype-root-element="HTML" 
 				doctype-system="about:legacy-compat" />
 
 <jsp:useBean id="datosLogin" class="es.javamyadmin.beans.LoginBean" scope="session" />

<html>
<head>

<link rel="icon" href="${pageContext.request.contextPath}/images/favicon.ico" type="image/x-icon"/>
<link rel="shortcut icon" href="${pageContext.request.contextPath}/images/favicon.ico" type="image/x-icon" />

<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/reset.css" media="screen" />
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/java-admin.css" media="screen" />

<title>JavaMyAdmin</title>

</head>

<body>

<div id="contenedor">
	
	<jsp:include page="../includes/sidebar-left.jsp" />
	
	<div id="contenido">
	
		<jsp:include page="../includes/cabecera.jsp" />
		
		<!-- Error de conexión -->
		<c:if test="${error!=null}"><div class="aviso"><div class="pro_aviso ko"><p><c:out value="${error}"></c:out></p></div></div></c:if>
		
		<c:if test="${ok!=null}"><div class="aviso"><div class="pro_aviso ok"><p><c:out value="${ok}"></c:out></p></div></div></c:if>
		
		<form style="margin-bottom: 30px;" action="${pageContext.request.contextPath}/crearBD" method="post">
			<table>
				<tr>
					<td colspan="2">Crear nueva Base de Datos</td>
				</tr>
				
				<tr>
					<td><input class="campo" type="text" name="nombreDatabase"/></td>
					<td><input class="boton" type="submit" value="Crear"/></td>
				</tr>
			</table>			
		</form>
		
		<p><a href="${pageContext.request.contextPath}/jsp/crear-usuario.jsp"><img class="arrow" src="${pageContext.request.contextPath}/images/arrow.png" />Crear Usuario</a></p>
		<p><a href="#"><img class="arrow" src="${pageContext.request.contextPath}/images/arrow.png" />Privilegios</a></p>
		
		<p><a href="${pageContext.request.contextPath}/jsp/ver-usuarios.jsp"><img class="arrow" src="${pageContext.request.contextPath}/images/arrow.png" />Ver Usuarios</a></p>
		
		<div id="autores">
			<h2>Java MyAdmin Información</h2>
			<p>Proyecto Final DAW - I.E.S. Albarregas</p>
			<p>Version: 1.0</p>
			
			<p>Autores:</p>
			<h3>Emilio Javier Castillo González</h3> <p>Email: emiliocastillogonzalez@gmail.com</p>
			<h3>Héctor Delgado Durán </h3> <p>Email: hdelgadoduran@gmail.com</p>	
		</div>
		
	</div>

</div>

</body>
</html>
</jsp:root>